import { createSlice } from '@reduxjs/toolkit';

const initialState = {
    cityCode: '',
};

const uLocation = createSlice({
    name: 'uLocation',
    initialState,
    reducers: {
        setCityCode: (state, action) => {
            state.cityCode = action.payload;
        },
    },
});

export const { setCityCode } = uLocation.actions;
export default uLocation.reducer;
